package com.bjpowernode.commons.utils;

import java.util.Random;

public class DirUtils {
    private static final Random RANDOM = new Random();

    public static String randomDirs(int level, int count) {
        String dirs = "/";
        for (int i = 0; i < level; i++) {
            // 随机生成0~count(不包含)的数字
            dirs += RANDOM.nextInt(count) + "/";
        }

        return dirs;
    }
}
